<div ng-controller="AddPostDialogController">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">新增帖子</h4>
    </div>
    <div class="modal-body">
        <div class="container-fluid">
            <div class="row gap">
                <textarea class="form-control" placeholder="帖子内容" rows="7"></textarea>
            </div>

            <div class="row gap">
                <div class="col-sm-6">
                    <button class="btn btn-default" ngf-select ng-model="images" accept="image/*" multiple>添加图片
                    </button>
                </div>
                <div class="col-sm-6">
                    <select class="form-control">
                        <option value="">选择板块</option>
                    </select>
                </div>
            </div>
            <div class="row image-preview" my-image-preview="images" my-image-preview-model="previewImages">
                <div ng-repeat="preview in previewImages" class="image-preview-single">
                    <div my-image-preview-single class="pos-rlt" ng-mouseenter="showDelIconFn();"
                         ng-mouseleave="hideDelIconFn();">
                        <div class="pos-abt icon-container" ng-show="showDelIcon">
                            <i class="fa fa-trash-o fa-lg" ng-click="deletePreview();"></i>
                        </div>
                        <img class="img-responsive thumb-wrapper" ng-src="{{dataUrl}}">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-success btn-block" ng-click="addNewPost();">发布帖子</button>
    </div>
</div>
